<template>
  <div class="q-pa-md">
    <div class="q-gutter-y-md column" style="max-width: 300px">
      <t-select
        color="purple-12"
        v-model="model"
        :options="options"
        label="Label"
      >
        <template v-slot:prepend>
          <t-icon name="event" />
        </template>
      </t-select>

      <t-select
        color="teal"
        filled
        v-model="model"
        :options="options"
        label="Label"
      >
        <template v-slot:prepend>
          <t-icon name="event" />
        </template>
      </t-select>

      <t-select
        color="grey-3"
        outlined
        label-color="orange"
        v-model="model"
        :options="options"
        label="Label"
      >
        <template v-slot:append>
          <t-icon name="event" color="orange" />
        </template>
      </t-select>

      <t-select
        color="lime-11"
        bg-color="green"
        filled
        v-model="model"
        :options="options"
        label="Label"
      >
        <template v-slot:prepend>
          <t-icon name="event" />
        </template>
      </t-select>

      <t-select
        color="teal"
        outlined
        v-model="model"
        :options="options"
        label="Label"
      >
        <template v-slot:append>
          <t-avatar>
            <img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg" />
          </t-avatar>
        </template>
      </t-select>

      <t-select
        clearable
        color="orange"
        standout
        bottom-slots
        v-model="model"
        :options="options"
        label="Label"
        counter
      >
        <template v-slot:prepend>
          <t-icon name="place" />
        </template>
        <template v-slot:append>
          <t-icon name="favorite" />
        </template>

        <template v-slot:hint> Field hint </template>
      </t-select>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref(null),

        options: ['Google', 'Facebook', 'Twitter', 'Apple', 'Oracle'],
      };
    },
  };
</script>
